package com.amex.uam.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.amex.uam.dao.CountryRegionDao;
import com.amex.uam.model.Message;
import com.amex.uam.service.CountryRegionService;
@Service("countryRegionService")
public class CountryRegionServiceImpl implements CountryRegionService{
	
	private CountryRegionDao countryRegionDao;
	
	@Resource
	public void setCountryRegionDao(CountryRegionDao countryRegionDao) {
		this.countryRegionDao = countryRegionDao;
	}

	@Override
	public Message loadGEOCounrty() {
		return new Message(Message.OK, countryRegionDao.loadGEOCounrty());
	}

	@Override
	public Message loadGEORegion() {
		return new Message(Message.OK, countryRegionDao.loadGEORegion());
	}

}
